package com.bcw.springtest.event.entity;

import org.springframework.context.ApplicationEvent;

public class UserEntity extends ApplicationEvent {

    private Integer id;
    private String name;


    public UserEntity(Object source, Integer id, String  name) {
        super(source);
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
